import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Home",
    component: () => import("../views/home"),
  },
  {
    path: "/dashboard/realtime",
    name: "RealtimeDashboard",
    component: () => import("../views/realtime-dashboard"),
  },
  {
    path: "/dashboard/covid",
    name: "CovidDashboard",
    component: () => import("../views/covid-dashboard"),
  },
  {
    path: "/dashboard/command-center",
    name: "CommandCenter",
    component: () => import("../views/command-center"),
  },
  {
    path: "/dashboard/digital-twin",
    name: "DigitalTwin",
    component: () => import("../views/digital-twin"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
